package com.qf.mapper;

import com.qf.pojo.SysUserInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * created by 赵文韬 on 2022/3/14 16:55
 */
public interface SysUserInfoMapper {
    @Select("select * from sys_user_info where u_id = #{userId}")
    SysUserInfo findById(Long userId);
    @Select("SELECT * FROM sys_user_info")
    List<SysUserInfo> findALL();
    @Select("select * from sys_user_info where username=#{username}")
    SysUserInfo findByUserName(String username);
    @Select("select * from sys_user_info where phone=#{phone}")
    SysUserInfo findByUserPhone(String phone);
    @Select("select * from sys_user_info where email=#{email}")
    SysUserInfo findByUserEmail(String email);

    void addUser(SysUserInfo sysUserInfo);
}
